package com.mo.modular.tv.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.mo.common.TvBaseController;
import com.mo.common.annotion.MemCache;

@Controller
@RequestMapping("/search")
@Api(value = "search", description = "搜索 引擎")
public class SearchController  extends TvBaseController {

	
	
	@MemCache
	@ApiOperation(value = "获取搜索页默认推荐的那个示例搜索的资产", 
			notes = "站长推荐位的列表中的，默认选择第一条数据<br/>", 
//			response  = ContView.class,
			responseContainer = "List")
	@RequestMapping(value = "/getScreeningList", method = RequestMethod.GET)
	public @ResponseBody Map<String,Object> getScreeningList(HttpServletRequest request) {
		Long siteId =  Long.parseLong("0"+request.getAttribute("siteId"));
//		BindingCont bindingCont = null;
//				zlRecommendService.getOneContBySiteIdAndType(siteId, ZlRecommendTypeEnum.ORDINARY.getCode());
//		ContView contView=new ContView();
//		BeanUtils.copyProperties(bindingCont, contView);
//		oneImmitAdvertInfo(bindingCont, "mo", "7");
		return writeSuccessToClient("查询成功", null);
	}
	
	
	
	
	
	
}
